<template>
  <div @click="fatherFn">
    <button @click.stop="sonFn">点击</button>
    <a @click.prevent href="http://www.baidu.com">不跳转</a>
  </div>
</template>

<script>
export default {
  name: 'CodeApp',

  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    sonFn(){
      console.log('点击儿子');
    },
      fatherFn(){
      console.log('点击爹');
    }
  },
};
</script>

<style lang="scss" scoped>

</style>